<template>
  <div id="app">
    <header class="todo-list__header">
      <div class="todo-list__logo">TodoList</div>
      <input class="todo-list__input" type="text" placeholder="请输入todo" />
    </header>
    <main class="todo-list__main">
      <section>
        <h2>正在进行</h2>
        <ul>
          <li>
            <input type="checkbox" />
            <p>111</p>
          </li>
        </ul>
      </section>

      <section class="done">
        <h2>已经完成</h2>
        <ul>
          <li>
            <input type="checkbox" />
            <div>111</div>
          </li>
        </ul>
      </section>
    </main>
    <footer class="todo-list__footer">
      <div>总计</div>
      <button>清除</button>
    </footer>
  </div>
</template>

<script>
export default {
  name: "App",
  components: {},
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}

#app {
  display: flex;
  flex-direction: column;
}

.todo-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 20px;
  width: 750px;
  height: 50px;
  background-color: rgba(47, 47, 47, 0.98);
}
.todo-list__logo {
  font-size: 36px;
  color: #fff;
}
.todo-list__input {
  padding: 0 20px;
  width: 360px;
  height: 36px;
  font-size: 18px;
  color: #000;
  border: none;
  outline: none;
}

/* 主体 */
.todo-list__main {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 20px;
  width: 750px;
}
.todo-list__main section ~ section {
  margin-top: 20px;
}

.todo-list__main h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.todo-list__main ul {
  list-style: none;
}

.todo-list__main li {
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 50px;
  border-left: 5px solid #629a9c;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 7%);
}

.todo-list__main input[type="checkbox"] {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  color: red;
}

.todo-list__main .done li {
  opacity: 0.5;
  border-left-color: #ccc;
}

/* 底部 */
.todo-list__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 20px;
  width: 750px;
  height: 50px;
  font-size: 16px;
  color: #fff;
  background-color: rgba(47, 47, 47, 0.98);
}

.todo-list__footer button {
  width: 100px;
  height: 36px;
}
</style>
